<?php
class Home_m extends CI_Model{
    function __construct() {
        parent::__construct();
        $this->load->database();
    }
    
    function get_text_by_page_id($page_id){
            $this->db->select(
            'text.id ,
            text.id_text,
            text.para_text,
            page.page_title'
            );
            $this->db->from('text ,page');
            $this->db->where('text.id_text = page.id');
            $this->db->where('text.id_text ',$page_id);
            return $this->db->get()->result_array();
    }
}

?>
